package app.vendorportal.api.marketplace.data.response;

import app.vendorportal.api.marketplace.data.MarketPlaceShipNotificationDetail;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

/**
 * @author carl.you
 */
@XmlRootElement(name = "market-place-ship-notification-response")
@XmlAccessorType(XmlAccessType.FIELD)
public class MarketPlaceShipNotificationResponse {

    @XmlElement(name = "total-count")
    private int totalCount;

    @XmlElement(name = "current-offset")
    private int currentOffset;

    @XmlElementWrapper(name = "market-place-ship-notification-details")
    @XmlElement(name = "market-place-ship-notification-detail")
    private final List<MarketPlaceShipNotificationDetail> shipNotificationDetails = new ArrayList<>();

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getCurrentOffset() {
        return currentOffset;
    }

    public void setCurrentOffset(int currentOffset) {
        this.currentOffset = currentOffset;
    }

    public List<MarketPlaceShipNotificationDetail> getShipNotificationDetails() {
        return shipNotificationDetails;
    }
}
